/**
 * @author 太阳当空丶赵
 * @date 2022/12/1-14:32
 * @version 1.0.0
 * BaseResultCode
 */
class BaseResultCode {
    // 状态码
    code
    // 提示文字
    msg
    constructor(code,msg) {
        this.code = code
        this.msg = msg
    }

    static SUCCESS = new BaseResultCode(200,"成功")
    static FAILED = new BaseResultCode(500,"服务器内部错误")
    static VALIDATE_FAILED = new BaseResultCode(400, "参数校验失败")
    static USER_VALIDATE_FAILED = new BaseResultCode(401, "身份校验失败")
    static API_NOT_FOUNT = new BaseResultCode(404, "接口不存在")
    static API_BUSY = new BaseResultCode(700, "操作过于频繁")

}

module.exports = BaseResultCode
